package cn.edu.xust.service;

import cn.edu.xust.Ro.MulHotelWtRo;
import cn.edu.xust.Ro.PieData;
import cn.edu.xust.util.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.edu.xust.entity.WtdataEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author ufo
 * @email 2575829997@qq.com
 * @date 2024-03-30 17:15:52
 */
public interface WtdataService extends IService<WtdataEntity> {

    PageUtils queryPage(Map<String, Object> params);

    WtdataEntity getnew(Integer id);

    List<WtdataEntity> getByDeviceNameAndTimetag(List<String> deivcenamelist, String timetag);


    //向上查询6小时内的最新数据
    WtdataEntity searchNewstInHourtime(String date, int hour, String devicename);


    //查询某日这个酒店的所有房间水表数据 22:30-04:30
    List<MulHotelWtRo> getByHType(String hotelid, String coldhotwt,String date);

    List<PieData> getByDay(String name, String start, String end);

}

